//
//  OrderDetailsViewController.m
//  DaiShengInvest
//
//  Created by 张睿 on 2017/7/4.
//  Copyright © 2017年 davinci. All rights reserved.
//

#import "OrderDetailsViewController.h"
#import "OrderDetailsView.h"

@interface OrderDetailsViewController ()

@property (nonatomic, weak)UIImageView * backImageView;

//@property (nonatomic, strong)OrderDetailsView * orderView;

//==
@property (nonatomic, weak)UILabel * calculateLabel;

@property (nonatomic, weak)UILabel * operationLabel;

@property (nonatomic, weak)UILabel * moneyCountLabel;

//==
@property (nonatomic, weak)UIView * oneLineView;
//==
@property (nonatomic, weak)UILabel * kindInformationLabel;
//==
@property (nonatomic, weak)UILabel * kindLabel;

@property (nonatomic, weak)UILabel * kindValueLabel;
//==
@property (nonatomic, weak)UILabel * transactionCountLabel;

@property (nonatomic, weak)UILabel * transactionCountValueLabel;
//==
@property (nonatomic, weak)UILabel * ensureLabel;

@property (nonatomic, weak)UILabel * ensureValueLabel;
//==
@property (nonatomic, weak)UILabel * poundageLabel;

@property (nonatomic, weak)UILabel * poundageValueLabel;
//==
@property (nonatomic, weak)UILabel * accrualLabel;

@property (nonatomic, weak)UILabel * accrualValueLabel;
//==
@property (nonatomic, weak)UIView * twoLineView;

@property (nonatomic, weak)UILabel * orderInformationLabel;
//==
@property (nonatomic, weak)UILabel * startPriceLabel;

@property (nonatomic, weak)UILabel * startPriceValueLabel;
//==
@property (nonatomic, weak)UILabel * endPriceLabel;

@property (nonatomic, weak)UILabel * endPriceValueLabel;
//==
@property (nonatomic, weak)UILabel * startKindLabel;
//==
@property (nonatomic, weak)UILabel * endKindLabel;
//==
@property (nonatomic, weak)UILabel * startTimeLabel;

@property (nonatomic, weak)UILabel * startTimeValueLabel;
//==
@property (nonatomic, weak)UILabel * orderNumberLabel;

@property (nonatomic, weak)UILabel * orderNumberValueLabel;
//==
@property (nonatomic, weak)UILabel * closeTimeLabel;

@property (nonatomic, weak)UILabel * closeTimeValueLabel;


@end

@implementation OrderDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setupNavBar];
    [self setupUI];
}

- (void)setupNavBar{
    
    self.title = @"订单详情";
    
    UIButton * backButton = [[UIButton alloc] init];
    
    backButton.frame = CGRectMake(15 * SCREENH6, 5 * SCREENH6, 12 * SCREENH6, 20 * SCREENH6);
    [backButton setImage:[UIImage imageNamed:@"1返回"] forState:UIControlStateNormal];
    [backButton addTarget:self action:@selector(backToAccountView) forControlEvents:UIControlEventTouchUpInside];
    
    UIBarButtonItem * leftButton = [[UIBarButtonItem alloc] initWithCustomView:backButton];
    
    self.navigationItem.leftBarButtonItem = leftButton;
}


- (void)setupUI{
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIImageView * backImage = [[UIImageView alloc] init];
    
    backImage.image = [UIImage imageNamed:@"背景"];
    
    self.backImageView = backImage;
    
    [self.view addSubview:self.backImageView];
    
    UILabel * calculateLabel = [UILabel new];
    
    calculateLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    calculateLabel.textColor = ColorWithRGB(0xffffff);
    calculateLabel.text = @"计算盈亏($)";
    
    self.calculateLabel = calculateLabel;
    
    [self.view addSubview:self.calculateLabel];
    
    
    UILabel * operationLabel = [UILabel new];
    
    operationLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
//    operationLabel.textColor = GREEN_COLOR;
    //可变数据
//    operationLabel.text = @"看多";
    operationLabel.text = self.operationString;
    if ([operationLabel.text isEqualToString:@"买"]) {
        operationLabel.textColor = RED_COLOR;
    }else{
        operationLabel.textColor = GREEN_COLOR;
    }
    
    self.operationLabel = operationLabel;
    
    [self.view addSubview:self.operationLabel];
    
    
    UILabel * moneyCountLabel = [UILabel new];
    
    moneyCountLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    moneyCountLabel.textColor = GREEN_COLOR;
    //可变数据
//    moneyCountLabel.text = @"-$109.79";
    moneyCountLabel.text = self.getMoneyCountLabel;
    if ([self.color isEqualToString:@"red"]) {
        moneyCountLabel.textColor = RED_COLOR;
    }else{
        moneyCountLabel.textColor = GREEN_COLOR;
    }
    self.moneyCountLabel = moneyCountLabel;
    
    [self.view addSubview:self.moneyCountLabel];
    
    
    UIView * oneLineView = [UIView new];
    
    oneLineView.backgroundColor = [UIColor whiteColor];
    oneLineView.alpha = 0.1;
    
    self.oneLineView = oneLineView;
    
    [self.view addSubview:self.oneLineView];
    
    UILabel * kindInformationLabel = [UILabel new];
    
    kindInformationLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    kindInformationLabel.textColor = ColorWithRGB(0xa2a2a2);
    kindInformationLabel.text = @"品种信息";
    
    self.kindInformationLabel = kindInformationLabel;
    
    [self.view addSubview:self.kindInformationLabel];
    
    UILabel * kindLabel = [UILabel new];
    
    kindLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    kindLabel.textColor = ColorWithRGB(0xa2a2a2);
    kindLabel.text = @"交易品种";
    
    self.kindLabel = kindLabel;
    
    [self.view addSubview:self.kindLabel];
    
    
    UILabel * kindValueLabel = [UILabel new];
    
    kindValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    kindValueLabel.textColor = ColorWithRGB(0xffffff);
    kindValueLabel.text = self.nameString;
    
    self.kindValueLabel = kindValueLabel;
    
    [self.view addSubview:self.kindValueLabel];
    
    //transactionCountLabel
    UILabel * transactionCountLabel = [UILabel new];
    
    transactionCountLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    transactionCountLabel.textColor = ColorWithRGB(0xa2a2a2);
    transactionCountLabel.text = @"交易数量";
    
    self.transactionCountLabel = transactionCountLabel;
    
    [self.view addSubview:self.transactionCountLabel];
    
    
    UILabel * transactionCountValueLabel = [UILabel new];
    
    transactionCountValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    transactionCountValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    transactionCountValueLabel.text = [NSString stringWithFormat:@"%@手",self.volumeLabel];
    
    self.transactionCountValueLabel = transactionCountValueLabel;
    
    [self.view addSubview:self.transactionCountValueLabel];
    
//    UILabel * ensureLabel = [UILabel new];
//    
//    ensureLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
//    ensureLabel.textColor = ColorWithRGB(0xa2a2a2);
//    ensureLabel.text = @"保证金";
//    
//    self.ensureLabel = ensureLabel;
//    
//    [self.view addSubview:self.ensureLabel];
//    
//    UILabel * ensureValueLabel = [UILabel new];
//    
//    ensureValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
//    ensureValueLabel.textColor = ColorWithRGB(0xa2a2a2);
//    ensureValueLabel.text = self.initialMarginLabel;
//    
//    self.ensureValueLabel = ensureValueLabel;
//    
//    [self.view addSubview:self.ensureValueLabel];
    
    UILabel * poundageLabel = [UILabel new];
    
    poundageLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    poundageLabel.textColor = ColorWithRGB(0xa2a2a2);
    poundageLabel.text = @"手续费";
    
    self.poundageLabel = poundageLabel;
    
    [self.view addSubview:self.poundageLabel];
    //accrualLabel
    
    UILabel * poundageValueLabel = [UILabel new];
    
    poundageValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    poundageValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    poundageValueLabel.text = self.commissionLabel;
    
    self.poundageValueLabel = poundageValueLabel;
    
    [self.view addSubview:self.poundageValueLabel];
    
    UILabel * accrualLabel = [UILabel new];
    
    accrualLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    accrualLabel.textColor = ColorWithRGB(0xa2a2a2);
    accrualLabel.text = @"隔夜利息";
    
    self.accrualLabel = accrualLabel;
    
    [self.view addSubview:self.accrualLabel];
    
    
    UILabel * accrualValueLabel = [UILabel new];
    
    accrualValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    accrualValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    accrualValueLabel.text = self.swapLabel;
    
    self.accrualValueLabel = accrualValueLabel;
    
    [self.view addSubview:self.accrualValueLabel];
    
    UIView * twoLineView = [UIView new];
    
    twoLineView.backgroundColor = [UIColor whiteColor];
    twoLineView.alpha = 0.1;
    
    self.twoLineView = twoLineView;
    
    [self.view addSubview:self.twoLineView];
    
    
    UILabel * orderInformationLabel = [UILabel new];
    
    orderInformationLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    orderInformationLabel.textColor = ColorWithRGB(0xa2a2a2);
    orderInformationLabel.text = @"订单信息";
    
    self.orderInformationLabel = orderInformationLabel;
    
    [self.view addSubview:self.orderInformationLabel];
    
    UILabel * startPriceLabel = [UILabel new];
    
    startPriceLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    startPriceLabel.textColor = ColorWithRGB(0xa2a2a2);
    startPriceLabel.text = @"开仓价";
    
    self.startPriceLabel = startPriceLabel;
    
    [self.view addSubview:self.startPriceLabel];
    
    
    UILabel * startPriceValueLabel = [UILabel new];
    
    startPriceValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    startPriceValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    startPriceValueLabel.text = self.openPriceLabel;
    
    self.startPriceValueLabel = startPriceValueLabel;
    
    [self.view addSubview:self.startPriceValueLabel];
    
    
    UILabel * endPriceLabel = [UILabel new];
    
    endPriceLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    endPriceLabel.textColor = ColorWithRGB(0xa2a2a2);
    endPriceLabel.text = @"平仓价";
    
    self.endPriceLabel = endPriceLabel;
    
    [self.view addSubview:self.endPriceLabel];
    
    
    UILabel * endPriceValueLabel = [UILabel new];
    
    endPriceValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    endPriceValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    endPriceValueLabel.text = self.closePriceLabel;
    
    self.endPriceValueLabel = endPriceValueLabel;
    
    [self.view addSubview:self.endPriceValueLabel];
    
//    UILabel * startKindLabel = [UILabel new];
//    
//    startKindLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
//    startKindLabel.textColor = ColorWithRGB(0xa2a2a2);
//    startKindLabel.text = @"开仓类型";
//    
//    self.startKindLabel = startKindLabel;
//    
//    [self.view addSubview:self.startKindLabel];
//    
//    
//    UILabel * endKindLabel = [UILabel new];
//    
//    endKindLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
//    endKindLabel.textColor = ColorWithRGB(0xa2a2a2);
//    endKindLabel.text = @"平仓类型";
//    
//    self.endKindLabel = endKindLabel;
//    
//    [self.view addSubview:self.endKindLabel];
    
    
    UILabel * startTimeLabel = [UILabel new];
    
    startTimeLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    startTimeLabel.textColor = ColorWithRGB(0xa2a2a2);
    startTimeLabel.text = @"开仓时间";
    
    self.startTimeLabel = startTimeLabel;
    
    [self.view addSubview:self.startTimeLabel];
    
    
    UILabel * startTimeValueLabel = [UILabel new];
    
    startTimeValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    startTimeValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    
    NSString * date = self.openTimeLabel;
    NSArray * array = [date componentsSeparatedByString:@"T"];
    
    NSString * dateString = array.firstObject;
    NSString * timeString = [array.lastObject substringToIndex:8];
    
    startTimeValueLabel.text = [NSString stringWithFormat:@"%@ %@",dateString,timeString];
    
    self.startTimeValueLabel = startTimeValueLabel;
    
    [self.view addSubview:self.startTimeValueLabel];
    
    
    UILabel * closeTimeLabel = [UILabel new];
    
    closeTimeLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    closeTimeLabel.textColor = ColorWithRGB(0xa2a2a2);
    closeTimeLabel.text = @"平仓时间";
    
    self.closeTimeLabel = closeTimeLabel;
    
    [self.view addSubview:self.closeTimeLabel];
    
    
    UILabel * closeTimeValueLabel = [UILabel new];
    
    closeTimeValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    closeTimeValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    
    NSString * dateClose = self.closeTime;
    NSArray * arrayClose = [dateClose componentsSeparatedByString:@"T"];
    
    NSString * dateStringClose = arrayClose.firstObject;
    NSString * timeStringClose = [arrayClose.lastObject substringToIndex:8];
    
    closeTimeValueLabel.text = [NSString stringWithFormat:@"%@ %@",dateStringClose,timeStringClose];
    
    self.closeTimeValueLabel = closeTimeValueLabel;
    
    [self.view addSubview:self.closeTimeValueLabel];
    
    
    UILabel * orderNumberLabel = [UILabel new];
    
    orderNumberLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    orderNumberLabel.textColor = ColorWithRGB(0xa2a2a2);
    orderNumberLabel.text = @"订单编号";
    
    self.orderNumberLabel = orderNumberLabel;
    
    [self.view addSubview:self.orderNumberLabel];
    
    UILabel * orderNumberValueLabel = [UILabel new];
    
    orderNumberValueLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:15 * SCREENH6];
    orderNumberValueLabel.textColor = ColorWithRGB(0xa2a2a2);
    orderNumberValueLabel.text = self.positionIdLabel;
    
    self.orderNumberValueLabel = orderNumberValueLabel;
    
    [self.view addSubview:self.orderNumberValueLabel];
}

- (void)viewDidLayoutSubviews{
    
    [self.backImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.trailing.bottom.top.mas_equalTo(self.view);
    }];
    
//    [self.orderView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.leading.trailing.bottom.mas_equalTo(self.view);
//        make.top.mas_equalTo(self.view);
//    }];
    
    [self.calculateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.view).offset(20 * SCREENH6);
        make.top.mas_equalTo(self.view).offset(84 * SCREENH6);
    }];
    
    [self.operationLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.calculateLabel);
        make.centerX.mas_equalTo(self.view);
    }];
    
    [self.moneyCountLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.operationLabel);
        make.leading.mas_equalTo(self.operationLabel.mas_trailing).offset(90 * SCREENH6);
    }];
    
    [self.oneLineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.trailing.mas_equalTo(self.view);
        make.height.mas_equalTo(1 * SCREENH6);
        make.top.mas_equalTo(self.view).offset(120 * SCREENH6);
    }];
    
    [self.kindInformationLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.oneLineView.mas_bottom).offset(18 * SCREENH6);
        make.leading.mas_equalTo(self.calculateLabel);
    }];
    
    [self.kindLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.kindInformationLabel.mas_bottom).offset(15 * SCREENH6);
        make.leading.mas_equalTo(self.kindInformationLabel);
    }];//kindValueLabel
    
    [self.kindValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.kindLabel);
        make.leading.mas_equalTo(self.view).offset(90 * SCREENH6);
    }];
    
    [self.transactionCountLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.kindLabel);
        make.leading.mas_equalTo(self.view).offset(253 * SCREENH6);
    }];
    
    [self.transactionCountValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.transactionCountLabel);
        make.trailing.mas_equalTo(self.view).offset(-15 * SCREENH6);
    }];
    
//    [self.ensureLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.leading.mas_equalTo(self.kindLabel);
//        make.top.mas_equalTo(self.kindLabel.mas_bottom).offset(13 * SCREENH6);
//    }];
//    
//    [self.ensureValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.leading.mas_equalTo(self.kindValueLabel);
//        make.centerY.mas_equalTo(self.ensureLabel);
//    }];
    
    [self.accrualLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.kindLabel);
        make.top.mas_equalTo(self.kindLabel.mas_bottom).offset(13 * SCREENH6);
    }];
    
    [self.accrualValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.kindValueLabel);
        make.centerY.mas_equalTo(self.accrualLabel);
    }];
    
    [self.poundageLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.transactionCountLabel);
        make.centerY.mas_equalTo(self.accrualLabel);
    }];
    
    [self.poundageValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.transactionCountValueLabel);
        make.centerY.mas_equalTo(self.poundageLabel);
    }];
    
    
    
    [self.twoLineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.trailing.height.mas_equalTo(self.oneLineView);
        make.top.mas_equalTo(self.accrualLabel.mas_bottom).offset(18 * SCREENH6);
    }];
    
    [self.orderInformationLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.accrualLabel);
        make.top.mas_equalTo(self.twoLineView.mas_bottom).offset(18 * SCREENH6);
    }];
    
    [self.startPriceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.orderInformationLabel);
        make.top.mas_equalTo(self.orderInformationLabel.mas_bottom).offset(23 * SCREENH6);
    }];
    
    [self.startPriceValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.accrualValueLabel);
        make.centerY.mas_equalTo(self.startPriceLabel);
    }];
    
    [self.endPriceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.startPriceLabel);
        make.leading.mas_equalTo(self.poundageLabel);
    }];
    
    [self.endPriceValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.endPriceLabel);
        make.trailing.mas_equalTo(self.view).offset(-15 * SCREENH6);
    }];
    
//    [self.startKindLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.leading.mas_equalTo(self.startPriceLabel);
//        make.top.mas_equalTo(self.startPriceLabel.mas_bottom).offset(20 * SCREENH6);
//    }];
//    
//    [self.endKindLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.centerY.mas_equalTo(self.startKindLabel);
//        make.leading.mas_equalTo(self.view).offset(241 * SCREENH6);
//    }];
    
    [self.startTimeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.startPriceLabel);
        make.top.mas_equalTo(self.startPriceLabel.mas_bottom).offset(20 * SCREENH6);
    }];
    
    [self.startTimeValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.startPriceValueLabel);
        make.centerY.mas_equalTo(self.startTimeLabel);
    }];
    
    [self.closeTimeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.startTimeLabel);
        make.top.mas_equalTo(self.startTimeLabel.mas_bottom).offset(27 * SCREENH6);
    }];
    
    [self.closeTimeValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.startTimeValueLabel);
        make.centerY.mas_equalTo(self.closeTimeLabel);
    }];
    
    [self.orderNumberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.closeTimeLabel);
        make.top.mas_equalTo(self.closeTimeLabel.mas_bottom).offset(27 * SCREENH6);
    }];
    
    [self.orderNumberValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.closeTimeValueLabel);
        make.centerY.mas_equalTo(self.orderNumberLabel);
    }];
    
}


- (void)backToAccountView{
    
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
